import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import './assets/css/public.css'
import axios from 'axios'
import jquery from 'jquery'
Vue.prototype.$http = axios
Vue.prototype.$=jquery

// axios.defaults.baseURL = 'http://42.192.51.193:8085'
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
export const baseUrls={
  // base1:'http://49.234.4.180:8085',
  // base2:'http://49.234.4.180:8086'
  base1:'http://localhost:8085',
  base2:'http://localhost:8086'
}
axios.interceptors.request.use(config => {
  // console.log(config)
  config.headers.Authorization = window.sessionStorage.getItem('token')
  return config
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
